#ifndef __UDP_SERV__
#define __UDP_SERV__

#include<Winsock.h>
#pragma comment(lib, "ws2_32.lib")
#include<string>
using namespace std;

extern string req;
extern string req2;
extern string req3;

class UDPServer {
private:
	WSADATA wsaData;
	SOCKET multicastSocket;
	sockaddr_in serverSockAddr;
public:
	UDPServer();
	void setSockAddr(const char *destAddr, const int destPort);
	int Listen(const int port);
	string Receive() const;
	int MultiCast(const char *dst) const;
	~UDPServer();
};
#endif
